﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using laba2.Entity;

namespace laba2.Configurations
{
    public class AchivementConfiguration:EntityTypeConfiguration<Achivement>
    {
        public AchivementConfiguration()
        {
            Property(a => a.TaskId).IsRequired();
            Property(a => a.StudentId).IsRequired();
            Property(a => a.Rating).IsRequired();
            Property(a => a.Date).IsRequired();
        }
    }
}
